projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb49a28
)
Fallback to gtk_show_uri for print preview if the command fails
author
Christian Dywan
<christian@twotoasts.de>
Mon, 30 Nov 2009 12:20:43 +0000
(13:20 +0100)
committer
Christian Dywan
<christian@twotoasts.de>
Mon, 30 Nov 2009 12:20:43 +0000
(13:20 +0100)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=601682
gtk/gtkprintoperation-unix.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprintoperation-unix.c
b/gtk/gtkprintoperation-unix.c
index 6b5aa15fc58d8c8ea1d57b861e4dd44d9f76b608..a36eced955f85221af0a2d58ebd6130cdaaff0c0 100644
(file)
--- a/
gtk/gtkprintoperation-unix.c
+++ b/
gtk/gtkprintoperation-unix.c
@@
-291,6
+291,19
@@
_gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
g_strfreev (argv);
+ if (error != NULL)
+ {
+ gchar* uri;
+
+ g_warning ("%s %s", _("Error launching preview"), error->message);
+
+ g_error_free (error);
+ error = NULL;
+ uri = g_filename_to_uri (filename, NULL, NULL);
+ gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error);
+ g_free (uri);
+ }
+
out:
if (error != NULL)
{